package homework2;

public class MatchData {
	public IBaseSport team1;
	public IBaseSport team2;
	public IScore score;

	public MatchData(IBaseSport team1, IBaseSport team2, IScore score) {
		this.team1 = team1;
		this.team2 = team2;
		this.score = score;
	}

	public IBaseSport matchWinner() {
		return this.score.winner(this.team1, this.team2);
	}
}
